package com.dianshichengjing;

/**
 * 线程优先级
 * 优先级高的可以优先获取资源
 * Created By Jon on 2018/4/25
 */
public class T02_Priority {

    public final static int MIN_PRIORITY = 1;
    public final static int NORM_PRIORITY = 5;
    public final static int MAX_PRIORITY = 10;

    public static void main(String[] args) {
        Thread t = new Thread(){
            @Override
            public void run() {

            }
        };
        t.setPriority(Thread.MIN_PRIORITY);
    }

}
